
$(".navList ul li:nth-child(1)").mouseover(function () {
  //找到带有active的li
  // .navBox
    $("nav").addClass("navimg1").removeClass("navimg2");
    // $("nav").removeClass("navimg2");
    $(".xingfang").css("display","block");
    $(".ershou").css("display","none");
    $(".fangjia").css("display","none");
    $(".xingfang").mouseover(function (){
      $(".xingfang").css("display","block");
    });
    $(".xingfang").mouseout(function (){
      $(".xingfang").css("display","none");
      // $(".xingfang").hide;
    });
});
$(".navList ul li:nth-child(1)").mouseout(function () {
  $(".xingfang").css("display","none");
});

$(".navList ul li:nth-child(2)").mouseover(function () {
  //找到带有active的li
  // .navBox
    $("nav").addClass("navimg2");
    $("nav").removeClass("navimg1");
    $(".xingfang").css("display","none");
    $(".ershou").css("display","block");
    $(".fangjia").css("display","none");
    $(".ershou").mouseover(function (){
      $(".ershou").css("display","block");
    });
    $(".ershou").mouseout(function (){
      $(".ershou").css("display","none");
    });
});
$(".navList ul li:nth-child(2)").mouseout(function () {
  $(".ershou").css("display","none");
});

$(".navList ul li:nth-child(3)").mouseover(function () {
  //找到带有active的li
  // .navBox
    $("nav").addClass("navimg1");
    $("nav").removeClass("navimg2");
    $(".xingfang").css("display","none");
    $(".ershou").css("display","none");
    $(".fangjia").css("display","block");
    $(".fangjia").mouseover(function (){
      $(".fangjia").css("display","block");
    });
    $(".fangjia").mouseout(function (){
      $(".fangjia").css("display","none");
    });
});
$(".navList ul li:nth-child(3)").mouseout(function () {
  $(".fangjia").css("display","none");
});
// $(".ssp2").mouseover(function () {
//     $("nav").addClass("navimg2");
//     $("nav").removeClass("navimg1");
//     $(".navInfo").css("display","none");
//     $(".ershou").css("display","block");
//     $(".fangjia").css("display","none");

// });
// $(".ssp3").mouseover(function () {
//     $("nav").addClass("navimg1");
//     $("nav").removeClass("navimg2");
//     $(".ershou").css("display","none");
//     $(".navInfo").css("display","none");
//     $(".fangjia").css("display","block");
// });
// 新房二手房

// $(".ershou").mouseover(function (){
//   $(".ershou").css("display","block");
// });
// $(".ershou").mouseout(function (){
//   $(".ershou").css("display","none");
// });
// $(".xingfang").mouseover(function (){
//   $(".xingfang").css("display","block");
// });
// $(".xingfang").mouseout(function (){
//   $(".xingfang").css("display","none");
// });
$(".titleList a:nth-child(1)").mouseover(function(){
  $(".titleList").addClass("titleList1");
  $(".titleList").removeClass("titleList2");
  $(".titleList").removeClass("titleList3");
  $(".titleList").removeClass("titleList4");
  $(".newsList ul:nth-child(1)").css("display","block");
  $(".newsList ul:nth-child(2)").css("display","none");
  $(".newsList ul:nth-child(3)").css("display","none");
  $(".newsList ul:nth-child(4)").css("display","none");
});
$(".titleList a:nth-child(2)").mouseover(function(){
  $(".titleList").removeClass("titleList1");
  $(".titleList").removeClass("titleList3");
  $(".titleList").removeClass("titleList4");
  $(".titleList").addClass("titleList2");
  $(".newsList ul:nth-child(1)").css("display","none");
  $(".newsList ul:nth-child(2)").css("display","block");
  $(".newsList ul:nth-child(3)").css("display","none");
  $(".newsList ul:nth-child(4)").css("display","none");
});
$(".titleList a:nth-child(3)").mouseover(function(){
  $(".titleList").removeClass("titleList1");
  $(".titleList").removeClass("titleList2");
  $(".titleList").removeClass("titleList4");
  $(".titleList").addClass("titleList3");
  $(".newsList ul:nth-child(1)").css("display","none");
  $(".newsList ul:nth-child(2)").css("display","none");
  $(".newsList ul:nth-child(3)").css("display","block");
  $(".newsList ul:nth-child(4)").css("display","none");
});
$(".titleList a:nth-child(4)").mouseover(function(){
  $(".titleList").removeClass("titleList1");
  $(".titleList").removeClass("titleList2");
  $(".titleList").removeClass("titleList3");
  $(".titleList").addClass("titleList4");
  $(".newsList ul:nth-child(1)").css("display","none");
  $(".newsList ul:nth-child(2)").css("display","none");
  $(".newsList ul:nth-child(3)").css("display","none");
  $(".newsList ul:nth-child(4)").css("display","block");
});
// $('.actBtnAll1 a').click(function () {
//   $(this).addClass('actBtn').siblings().removeClass('actBtn');
//   $('.mainList').removeClass('active').eq($(this).index()).addClass('active')
// })
$(".newHouseTop span:nth-child(1)").mouseover(function(){
  $(this).css("color","#ffffff");
  $(this).css("background","#4385f5");
  $(".newHouseTop span:nth-child(2)").css("border-right","1px solid #000")
  $(".newHouseTop span:nth-child(2)").css("border-left","0px solid #000")
  $(".newHouseTop span:nth-child(2)").css("background","#f4f4f4");
  $(".newHouseTop span:nth-child(2)").css("color","#000");
  $(".newHouseTop span:nth-child(3)").css("background","#f4f4f4");
  $(".newHouseTop span:nth-child(3)").css("color","#000");
  $(".newHouse ul:nth-child(2)").addClass("nxian");
  $(".newHouse ul:nth-child(3)").addClass("nyin");
  $(".newHouse ul:nth-child(4)").addClass("nyin");
  $(".newHouse ul:nth-child(4)").removeClass("nxian");
  $(".newHouse ul:nth-child(3)").removeClass("nxian");
});
$(".newHouseTop span:nth-child(2)").mouseover(function(){
  $(this).css("border-right","0px solid #000")
  $(this).css("color","#ffffff");
  $(this).css("background","#4385f5");
  $(this).css("border-left","0px solid #000")
  $(".newHouseTop span:nth-child(1)").css("background","#f4f4f4");
  $(".newHouseTop span:nth-child(1)").css("color","#000");
  $(".newHouseTop span:nth-child(3)").css("background","#f4f4f4");
  $(".newHouseTop span:nth-child(3)").css("color","#000");
  $(".newHouse ul:nth-child(3)").addClass("nxian");
  $(".newHouse ul:nth-child(2)").addClass("nyin");
  $(".newHouse ul:nth-child(4)").addClass("nyin");
  $(".newHouse ul:nth-child(4)").removeClass("nxian");
  $(".newHouse ul:nth-child(2)").removeClass("nxian");
});
$(".newHouseTop span:nth-child(3)").mouseover(function(){
  $(this).css("color","#ffffff");
  $(this).css("background","#4385f5");
  $(".newHouseTop span:nth-child(2)").css("border-left","1px solid #000")
  $(".newHouseTop span:nth-child(1)").css("background","#f4f4f4");
  $(".newHouseTop span:nth-child(1)").css("color","#000");
  $(".newHouseTop span:nth-child(2)").css("background","#f4f4f4");
  $(".newHouseTop span:nth-child(2)").css("color","#000");
  $(".newHouse ul:nth-child(4)").addClass("nxian");
  $(".newHouse ul:nth-child(3)").addClass("nyin");
  $(".newHouse ul:nth-child(2)").addClass("nyin");
  $(".newHouse ul:nth-child(2)").removeClass("nxian");
  $(".newHouse ul:nth-child(3)").removeClass("nxian");
});
$(".newCarouselBtn .carBtn").click(function(){
  $(this).css("border-bottom","4px solid #4385f5");
  $(".newCarouselBtn .carBtn1").css("border-bottom","0px solid #4385f5");
  $(".newCarouselBtn .carBtn2").css("border-bottom","0px solid #4385f5");
  $(".Carouse").addClass("newxian");
  $(".Carouse1").addClass("newyin");
  $(".Carouse1").removeClass("newxian");
  $(".Carouse").removeClass("newyin");
});
$(".newCarouselBtn .carBtn1").click(function(){
  $(this).css("border-bottom","4px solid #4385f5");
  $(".newCarouselBtn .carBtn2").css("border-bottom","0px solid #4385f5");
  $(".newCarouselBtn .carBtn").css("border-bottom","0px solid #4385f5");
  $(".Carouse1").addClass("newxian");
  $(".Carouse1").removeClass("newyin");
  $(".Carouse").addClass("newyin");
  $(".Carouse").removeClass("newxian");
});
$(".newCarouselBtn .carBtn2").click(function(){
  $(this).css("border-bottom","4px solid #4385f5");
  $(".newCarouselBtn .carBtn1").css("border-bottom","0px solid #4385f5");
  $(".newCarouselBtn .carBtn").css("border-bottom","0px solid #4385f5");
});
